gl: Tweak the swizzle for GLES texture fragments
authorEmmanuele Bassi <ebassi@gnome.org>
Sat, 23 Apr 2016 12:52:03 +0000 (13:52 +0100)
committerEmmanuele Bassi <ebassi@gnome.org>
Mon, 25 Apr 2016 11:29:37 +0000 (12:29 +0100)
commitfe25ba3c5f735525324bad7740ae38e81736fd08
tree6276be01bfa94f38fe4a43996bbb792b946de260
parenta942e96c8fc0f6912ed2e44e81d0dd1d53645e11
gl: Tweak the swizzle for GLES texture fragments

Cairo surfaces are in BGRA format, but we upload them as RGBA buffers on
GLES; this means that the R and B channels are flipped in the texture
data.

Instead of doing a costly channel flip before putting them on the GPU,
we can flip the values inside the GLSL shader we use specifically for
GLES.
gdk/resources/glsl/gles2-texture.fs.glsl